package controller

import (
	"cloud_note/db/mysql"
	"cloud_note/model"
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)

var (
	user model.User
)

func UserRegister(c *gin.Context) {
	fmt.Println("我被执行了23")
	mysql.GetUserByName("张三", user)
	c.JSON(http.StatusOK, gin.H{
		"data":    user,
		"message": "调用成功123",
		"code":    200,
	})
}
